﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace IndoorPosition.Server.Application
{
    /// <summary>
    /// 蓝牙基站信息数据输入对象
    /// </summary>
    public class StationInputDto
    {
        /// <summary>
        /// 所属楼层ID
        /// </summary>
        [Required(ErrorMessage = "楼层ID不可为空")]
        public int FloorId
        {
            get;
            set;
        }

        /// <summary>
        /// 产品型号
        /// </summary>
        [Required(ErrorMessage = "产品型号不可为空")]
        [MaxLength(50, ErrorMessage = "产品型号不能长于50位")]
        public string Model
        {
            get;
            set;
        }

        /// <summary>
        /// 芯片型号
        /// </summary>
        [MaxLength(50, ErrorMessage = "芯片型号不能长于50位")]
        public string Board
        {
            get;
            set;
        }

        /// <summary>
        /// 设备名称
        /// </summary>
        [MaxLength(50, ErrorMessage = "设备名称不能长于50位")]
        public string IBeaconName
        {
            get;
            set;
        }


        /// <summary>
        /// 功率校验/1米
        /// </summary>
        public double MeasuredPower
        {
            get;
            set;
        }

        /// <summary>
        /// 发射功率
        /// </summary>
        public double TransmissionPower
        {
            get;
            set;
        }

        /// <summary>
        /// 广播周期ms
        /// </summary>
        public int BroadcastInterval
        {
            get;
            set;
        }

        /// <summary>
        /// 蓝牙MAC地址
        /// </summary>
        [MaxLength(20, ErrorMessage = "蓝牙MAC地址不能长于50位")]
        public string MAC
        {
            get;
            set;
        }


        /// <summary>
        /// UUID
        /// </summary>
        [Required(ErrorMessage = "UUID不可为空")]
        [MaxLength(50, ErrorMessage = "UUID不能长于50位")]
        public string UUID
        {
            get;
            set;
        }

        /// <summary>
        /// 主值
        /// </summary>
        [Required(ErrorMessage = "主值不可为空")]
        public int Major
        {
            get;
            set;
        }

        /// <summary>
        /// 辅值
        /// </summary>
        [Required(ErrorMessage = "辅值不可为空")]
        public int Minor
        {
            get;
            set;
        }

        /// <summary>
        /// 电池容量
        /// </summary>
        public int Battery
        {
            get;
            set;
        }
    }
}
